package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyHouseLandlordMapper;
import com.ruoyi.system.domain.HyHouseLandlord;
import com.ruoyi.system.service.IHyHouseLandlordService;

/**
 * 房东Service业务层处理
 * 
 * @author wangjiangbo
 * @date 2025-01-10
 */
@Service
public class HyHouseLandlordServiceImpl implements IHyHouseLandlordService 
{
    @Autowired
    private HyHouseLandlordMapper hyHouseLandlordMapper;

    /**
     * 查询房东
     * 
     * @param id 房东主键
     * @return 房东
     */
    @Override
    public HyHouseLandlord selectHyHouseLandlordById(Long id)
    {
        return hyHouseLandlordMapper.selectHyHouseLandlordById(id);
    }

    /**
     * 查询房东列表
     * 
     * @param hyHouseLandlord 房东
     * @return 房东
     */
    @Override
    public List<HyHouseLandlord> selectHyHouseLandlordList(HyHouseLandlord hyHouseLandlord)
    {
        return hyHouseLandlordMapper.selectHyHouseLandlordList(hyHouseLandlord);
    }

    /**
     * 新增房东
     * 
     * @param hyHouseLandlord 房东
     * @return 结果
     */
    @Override
    public int insertHyHouseLandlord(HyHouseLandlord hyHouseLandlord)
    {
        return hyHouseLandlordMapper.insertHyHouseLandlord(hyHouseLandlord);
    }

    /**
     * 修改房东
     * 
     * @param hyHouseLandlord 房东
     * @return 结果
     */
    @Override
    public int updateHyHouseLandlord(HyHouseLandlord hyHouseLandlord)
    {
        return hyHouseLandlordMapper.updateHyHouseLandlord(hyHouseLandlord);
    }

    /**
     * 批量删除房东
     * 
     * @param ids 需要删除的房东主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseLandlordByIds(Long[] ids)
    {
        return hyHouseLandlordMapper.deleteHyHouseLandlordByIds(ids);
    }

    /**
     * 删除房东信息
     * 
     * @param id 房东主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseLandlordById(Long id)
    {
        return hyHouseLandlordMapper.deleteHyHouseLandlordById(id);
    }
}
